﻿using System.Configuration;
using System.Data;
using System.Windows;

namespace EmguCV.WpfApp1
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : System.Windows.Application
    {
        /// <summary>
        /// App.Current.Dispatcher.Invoke 
        /// </summary>
        /// <param name="action"></param>
        public static void Invoke(Action action)
        {
            App.Current.Dispatcher.Invoke(() =>
            {
                action?.Invoke();
            });
        }
    }


}
